package com.idheima.zuoye.zuoye2;

public class Manager extends Fu{
    private double bonus;

    public Manager(String name, int id, double money, double bonus) {
        super(name, id, money);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("工号为："+getId()+"的经理"+getName()+","+"拿着："+getMoney()+"工资"+"和"+bonus+"奖金，"+"正在盯着程序员写代码。");
    }
}
